package com.taichuan.selfcheck.utils;

import com.taichuan.tcutils.taichuan.SystemUtils;
import com.taichuan.tcutils.taichuan.TcDeviceType;

/**
 * 硬件工具
 *
 * @author lqd
 */
public final class HardwareUtils {

    /*** 判断当前设备是否20系列单片机设备 */
    public static boolean is20Devices() {
        final TcDeviceType deviceType = SystemUtils.getTcDeviceType();
        if (SystemUtils.isTC5000D_XL5_4GBoard()){
            return true;
        }else {
            return deviceType == TcDeviceType.RK3399_20D_BOARD_LANDSCAPE_KEY
                    || deviceType == TcDeviceType.RK3399_20D_BOARD_LANDSCAPE_TOUCH
                    || deviceType == TcDeviceType.RK3399_20D_BOARD_VERTICAL_KEY
                    || deviceType == TcDeviceType.RK3399_20D_BOARD_VERTICAL_TOUCH;
        }
    }

}
